<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/15
 * Time: 14:20
 */
use think\facade\Route;
//多应用需要加模块名访问
Route::rule("smscode",'sms/code',"POST");
Route::rule("login",'login/index',"POST");
Route::resource('user', 'User');
//Route::resource('blog', 'Blog');
////对每个方法设置中间件
//Route::rule('pad','index/pad','GET')->middleware(\app\api\middleware\Pad::class);use think\facade\Route;